<?php
declare ( strict_types = 1 )
	;

namespace Distributed;

use Distributed\Event\GetDataBase;
use Distributed\Event\BegainTrancestation;
use Distributed\Event\RollBack;
use Distributed\Event\ActionPreCommit;
use Distributed\Event\ActionRegXActor;
use Distributed\Event\ResultPreCommit;
use Distributed\Event\ActionCommit;
use Distributed\Event\ActionCoroutineInsert;

/**
 * 事件表达
 * 
 * @author mg
 */
class EventMap {
	public const EVENT_MAP = [ 
			Constant::GET_DB_POOL => GetDataBase::class,
			Constant::SOCKET_ACTION_STARTTRANS => BegainTrancestation::class,
			Constant::SOCKET_ACTION_ROLLBACK => RollBack::class,
			Constant::SOCKET_ACTION_PRECOMMIT => ActionPreCommit::class,
			Constant::SOCKET_ACTION_REGTXACTOR => ActionRegXActor::class,
			Constant::SOCKET_RESULT_PRE_COMMIT => ResultPreCommit::class,
			Constant::SOCKET_ACTION_COMMIT => ActionCommit::class,
			Constant::SOCKET_ACTION_INSERT_COROUTINE => ActionCoroutineInsert::class 
	];
}